package org.onejava.core.bean;

import java.lang.reflect.Method;

import org.onejava.core.bean.imp.Entity;


public class ActionEntity  implements Entity{
	private String name;
	private Object obj;
	private Class<?> actionClass;
	private Method method;
	private InterceptorEntity[] beforeInterceptors;
	private InterceptorEntity[] afterInterceptors;
	
	public ActionEntity(String actionName,Object obj,Method method,InterceptorEntity[] beforeInterceptors,InterceptorEntity[] afterInterceptors){
		this.name=actionName;
		this.obj=obj;
		
		this.method=method;
		this.beforeInterceptors=beforeInterceptors;
		this.afterInterceptors=afterInterceptors;
	}
	
	public String getName() {
		return name;
	}
	public Object getObj() {
		return obj;
	}
	public Method getMethod() {
		return method;
	}
	public InterceptorEntity[] getBeforeInterceptors() {
		return beforeInterceptors;
	}
	public InterceptorEntity[] getAfterInterceptors() {
		return afterInterceptors;
	}

	public Class<?> getActionClass() {
		return actionClass;
	}

	public void setActionClass(Class<?> actionClass) {
		this.actionClass = actionClass;
	}
	
	
}
